<div class="bg-light lter b-b wrapper-md">
	<h1 class="m-n font-thin h3">
		<a id="head"></a>数据字典新增/修改
	</h1>
</div>
<div class="wrapper-md no-padder" ng-controller="sys_dictionaryEditController">
	<div class="panel panel-default">
		<div class="panel-body">
			<form class="form-horizontal form-validation col-sm-11" method="get" name="form">
				<label class="col-sm-2 control-label">类型</label>
				<div class="col-sm-4">
					<input type="text" class="form-control  m-b-xs" ng-readonly="type == 'update'"
						ng-model="entity.type" required> 
<!-- 						<span class="help-block m-b-none">这里是一个提示块,如果有提示信息可以按照这样展现</span> -->
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<label class="col-sm-2 control-label" >标签</label>
				<div class="col-sm-4">
					<input type="text" class="form-control m-b-xs" ng-model="entity.label" required>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<label class="col-sm-2 control-label">值</label>
				<div class="col-sm-4">
					<input type="text" class="form-control m-b-xs" ng-model="entity.value" required> <span
						class="help-block m-b-none"></span>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				
				<label class="col-sm-2 control-label">数据类型</label>
				<div class="col-sm-4 m-b-xs" default-value="'string'" app-dict-radio="entity.dataType" dict-type="sysDataType"></div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				
				<label class="col-sm-2 control-label">顺序</label>
				<div class="col-sm-4">
					<input type="number" class="form-control  m-b-xs" ng-model="entity.sort" required> <span
						class="help-block m-b-none"></span>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<label class="col-sm-2 control-label" >描述</label>
				<div class="col-sm-4">
					<textarea type="text" class="form-control  m-b-xs" ng-model="entity.description"></textarea>
				</div>

				<div class="line line-dashed b-b line-lg pull-in"></div>
				<div class="col-sm-5 col-sm-offset-2">
					<div class="m-b-md">
						<uib-alert ng-repeat="alert in Alert.alerts" type="{{alert.type}}" close="Alert.closeAlert($index)">
						{{alert.msg}} </uib-alert>
					</div>
					<!-- / alert -->
					<button type="submit" class="btn btn-default" ng-click="canle()">返回</button>
					<button type="submit" class="btn btn-primary" ng-disabled="form.$invalid || saveBtnDisable"
						ng-click="save(); saveBtnDisable = true;">保存</button>&nbsp;&nbsp;&nbsp;&nbsp;
				</div>
			</form>
		</div>
	</div>
</div>